package com.action;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 刷新客户端指令
 *    用postman发送post请求
 *    http://127.0.0.1:9999/actuator/refresh
 */
@RestController
@RefreshScope
public class ClientAction {

    @Value("${age}")
    private  String age;

    @RequestMapping("/hello")
    public String hello()
    {
        return "Hello,World:"+ age;
    }
}
